<?php
/**
 * Created by PhpStorm.
 * User: cape
 * Date: 2017/10/10
 * Time: 15:09
 */

trait HelloWorld{
    public function sayHello(){
        echo 'Hello World!';
    }
}


class MyClass1{
    use HelloWorld {sayHello as protected;}
}

class MyClass2{
    use HelloWorld {sayHello as private myPrivateHello;}
}













